﻿using System;

class IsThirdDigitSeven
{
    static void Main()
    {
        int a;

        Int32.TryParse(Console.ReadLine(), out a);
        a /= 100;
        a %= 10;
        if (Math.Abs(a) == 7)
        {
            Console.WriteLine("The result is TRUE. The third digit is 7.");
        }
        else
        {
            Console.WriteLine("The result is False. The third digit is {0}.", a);
        }
    }
}
